package com.learning.gson;

import com.google.gson.Gson;
import com.learning.bean.Person;

public class GSON1 {
	public static void main(String[] args) {
		String str="{'person':{'age':25,'name':'Bill'}}";
		String str2="{'person':{'age':25,'name':'Bill'}}";
		Gson gson=new Gson();
		Person p=gson.fromJson(str2, Person.class);
		System.out.println(p);
	}

}
